<style lang="stylus" scoped>
@import '../../styl/var.styl'
</style>

<template lang="pug">
.bk
  h2 录制区域
  .select
    select(:disabled="disabled" v-model="config.area")
      option(:value="pos" v-for="(i, pos) in li") {{ i }}
</template>

<script lang="coffee">
import config from '~/store/record.coffee'

export default {
setup:=>
  {
    config
    disabled:computed =>
      config.src == 'camera'
    li : '整个桌面 应用窗口 指定区域'.split(' ')
  }

}
</script>
